using System;
using System.Data;
using System.Xml;

using OR.Reuse.Persistence;
using OR.Lazarus.Business;
using OR.Lazarus.Library;

namespace OR.Lazarus.Library.DataTier.Source
{
   public class ProjectDetail : OR.Lazarus.Library.DataTier.Source.Lazarus.ProjectDetail, IProject
   {
      private bool mUseParameterPrefix;

	   public bool UseParameterPrefix
	   {
	   	get { return mUseParameterPrefix;}
	   	set { mUseParameterPrefix = value;}
	   }

      public override void LoadXml( XmlElement p_oSource )
      {
         base.LoadXml( p_oSource );

         mUseParameterPrefix = DataUtility.GetBool( p_oSource, "use-parameter-prefix", true );

         foreach ( ObjectDetail vObject in this.Objects )
         {
            vObject.Project = this;
         }
      }

      #region IProject Members


      public string GetRelativePath( string pDelimiter, bool pShowPrefix, bool pShowSuffix )
      {
         throw new Exception( "The method or operation is not implemented." );
      }

      #endregion
   }
}
   